<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script lang="ts">
//引入装饰器
import { Component, Vue } from 'vue-property-decorator'
import { State, Getter, Mutation, Action } from "vuex-class"
@Component({
  components: {}
})
export default class App extends Vue {
  @Action('setUser') setUser: any;
  created(){
    this.setUser(localStorage.tsToken)//存储数据，防止刷新数据丢失
  }
}
</script>


<style lang="scss">
#app {
 width: 100%;
 height: 100%;
}
</style>
